/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ventanas;

/**
 *
 * @author USUARIO
 */
public class panadministrarclientes extends javax.swing.JPanel {

    /**
     * Creates new form panadministrarclientes
     */
    public panadministrarclientes() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btningresar = new javax.swing.JButton();
        paninicio = new javax.swing.JPanel();
        btnbuscar = new javax.swing.JButton();
        btntelefono = new javax.swing.JButton();

        setBackground(new java.awt.Color(253, 245, 224));
        addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                formFocusGained(evt);
            }
        });

        btningresar.setFont(new java.awt.Font("Arial Unicode MS", 1, 12)); // NOI18N
        btningresar.setForeground(new java.awt.Color(102, 51, 255));
        btningresar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cream_choco.png"))); // NOI18N
        btningresar.setText("Ingresar");
        btningresar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btningresarMouseClicked(evt);
            }
        });

        paninicio.setBackground(new java.awt.Color(255, 255, 255));
        paninicio.setAlignmentX(0.2F);
        paninicio.setAutoscrolls(true);
        paninicio.setLayout(new java.awt.BorderLayout());

        btnbuscar.setFont(new java.awt.Font("Arial Unicode MS", 1, 12)); // NOI18N
        btnbuscar.setForeground(new java.awt.Color(102, 51, 255));
        btnbuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/choko_crema.png"))); // NOI18N
        btnbuscar.setText("Buscar");
        btnbuscar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnbuscarMouseClicked(evt);
            }
        });

        btntelefono.setFont(new java.awt.Font("Arial Unicode MS", 1, 12)); // NOI18N
        btntelefono.setForeground(new java.awt.Color(102, 51, 255));
        btntelefono.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cream_pink.png"))); // NOI18N
        btntelefono.setText("telefono");
        btntelefono.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btntelefonoMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(43, 43, 43)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(paninicio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(btnbuscar)
                        .addGap(18, 18, 18)
                        .addComponent(btningresar)
                        .addGap(29, 29, 29)
                        .addComponent(btntelefono)
                        .addGap(0, 674, Short.MAX_VALUE)))
                .addGap(46, 46, 46))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(100, 100, 100)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnbuscar)
                    .addComponent(btningresar)
                    .addComponent(btntelefono))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(paninicio, javax.swing.GroupLayout.PREFERRED_SIZE, 319, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btningresarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btningresarMouseClicked
        // TODO add your handling code here:
       paninicio.removeAll();
    paninicio.add(new panIngresoDatos());
    paninicio.updateUI();
        
      // this.removeAll();
       // this.add(new panIngresoDatos());
       // this.updateUI();
    }//GEN-LAST:event_btningresarMouseClicked

    private void formFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_formFocusGained
        // TODO add your handling code here:
      
    }//GEN-LAST:event_formFocusGained

    private void btnbuscarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnbuscarMouseClicked
        // TODO add your handling code here:
        paninicio.removeAll();
        paninicio.add(new panBuscar());
        paninicio.updateUI();
    }//GEN-LAST:event_btnbuscarMouseClicked

    private void btntelefonoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btntelefonoMouseClicked
        // TODO add your handling code here:
            paninicio.removeAll();
        paninicio.add(new panotrosdatoscliente());
        paninicio.updateUI();
    }//GEN-LAST:event_btntelefonoMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnbuscar;
    private javax.swing.JButton btningresar;
    private javax.swing.JButton btntelefono;
    private javax.swing.JPanel paninicio;
    // End of variables declaration//GEN-END:variables
}
